#ifndef FLIGHTGENERATOR_H_
#define FLIGHTGENERATOR_H_

#include "comunication/inbox/TowerControlInbox.h"
#include "utils/Logger.h"

class FlightGenerator {
public:
	FlightGenerator(unsigned int cantidadVuelos);
	virtual ~FlightGenerator();

	int run();

private:
	unsigned int cantidadVuelos;

	TowerControlInbox towerControlInboxBox;

	Logger log;
	bool esPadre;

	int startNewFlight(int flightId);

	void waitAllFlight();

	std::vector<pid_t> flightsIds;

};

#endif /* FLIGHTGENERATOR_H_ */
